{extend name="public/base" /}
{block name="title"}
<title>{:confv('title')}</title>
<meta name="keywords" content="{:confv('keywords')}">
<meta name="description" content="{:confv('description')}">
{/block}
{block name="head"}
<link href="__ROOT__/home/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css">
<link href="__ROOT__/home/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css">
<link href="__ROOT__/home/css/personal.css" rel="stylesheet" type="text/css">
<link href="__ROOT__/home/css/point.css" rel="stylesheet" type="text/css">
<script src="__ROOT__/home/AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
<script src="__ROOT__/home/AmazeUI-2.4.2/assets/js/amazeui.js"></script>	
{/block}
{block name="body"}
<div class="nav-table">
	<div class="long-title"><span class="all-goods">全部分类</span></div>
	<div class="nav-cont">
		<ul>
			{foreach $cates as $vo}
                <li class="qc"><a href="{:url('/'.$vo['id'])}">{$vo.typename}</a></li>
		    {/foreach}
		</ul>
		
	</div>
</div>
<b class="line"></b>

<div class="center">
	<div class="col-main">
		<div class="main-wrap">
			<div class="points">
				<!--标题 -->
				<div class="am-cf am-padding">
					<div class="am-fl am-cf"><strong class="am-text-danger am-text-lg">我的消费</strong> / <small>My&nbsp;Money</small></div>
				</div>
				<hr/>
				<!-- <div class="pointsTitle">
				   <div class="usable">可用积分<span>120</span></div>
				   <div class="pointshop"><a href="#"><i><img src="__ROOT__/home/images/u5.png" /></i>积分商城</a></div>
				   <div class="signIn"><a href="#"><i class="am-icon-calendar"></i><em>+5</em>每日签到</a></div>
				</div> -->
				<div class="pointlist am-tabs" data-am-tabs>
					<ul class="am-avg-sm-3 am-tabs-nav am-nav am-nav-tabs">
						<li class="am-active"><a href="#tab1">全部</a></li>
						<li><a href="#tab2">获得</a></li>
						<li><a href="#tab3">支出</a></li>
					</ul>
					<div class="am-tabs-bd">
						<div class="am-tab-panel am-fade am-in am-active" id="tab1">
							<table>
								<b></b>
								<thead>
									<tr>												
										<th class="th1">详情</th>
										<th class="th2">变动</th>
										<th class="th3">日期</th>
									</tr>
								</thead>										
								<tbody>
								{foreach $money as $vo}
									<tr>
										<td class="pointType">{$vo.remak}</td>
										<td class="pointNum">{$vo['in_or_out'] ==1 ? '+' :'-'}{$vo.pay}</td>
										<td class="pointTime">{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
									</tr>
								{/foreach}
								</tbody>
							</table>
						</div>
						<div class="am-tab-panel am-fade" id="tab2">
							<table>
								<b></b>
								<thead>
									<tr>												
										<th class="th1">详情</th>
										<th class="th2">获取</th>
										<th class="th3">日期</th>
									</tr>
								</thead>
								<tbody>
								{foreach $money as $vo}
								{if condition="$vo['in_or_out'] == 1"}
									<tr>
										<td class="pointType">{$vo.remak}</td>
										<td class="pointNum">+{$vo.pay}</td>
										<td class="pointTime">{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
									</tr>
								{/if}
								{/foreach}
								</tbody>
							</table>
						</div>
						<div class="am-tab-panel am-fade" id="tab3">
							<table>
								<b></b>
								<thead>
									<tr>												
										<th class="th1">详情</th>
										<th class="th2">消耗</th>
										<th class="th3">日期</th>
									</tr>
								</thead>
								<tbody>
								{foreach $money as $vo}
								{if condition="$vo['in_or_out'] == 2"}
									<tr>
										<td class="pointType">{$vo.remak}</td>
										<td class="pointNum">-{$vo.pay}</td>
										<td class="pointTime">{:date('Y-m-d H:i:s',$vo['create_time'])}</td>
									</tr>
								{/if}
								{/foreach}
								</tbody>
							</table>
						</div>

					</div>

				</div>
			</div>
		</div>
		<!--底部-->
		{block name="foot"}{include file="public/footer" /}{/block}
	</div>

	<aside class="menu">
		<ul>
			<li class="person active">
				<a href="index.html"><i class="am-icon-user"></i>个人中心</a>
			</li>
			<li class="person">
				<ul>
					<li> <a href="{:url('/member')}">个人信息</a></li>
					<li> <a href="{:url('/myorder')}">订单详情</a></li>
					<li> <a href="{:url('/myscore')}">我的积分</a></li>
					<li> <a href="{:url('/mylong')}">消费详情</a></li>
					<li> <a href="{:url('/subordinate')}">会员信息</a></li>
				</ul>
			</li>
		</ul>

	</aside>
</div>
{/block}